package com.woniuxy.commons.service.warehouse;


import com.woniuxy.commons.entity.warehouse.IoWarehouseProduct;
import com.woniuxy.commons.result.Result;
import com.woniuxy.commons.service.warehouse.factory.WareHouseServiceFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "WAREHOUSE",fallbackFactory = WareHouseServiceFactory.class)
public interface WareHouseService {
    @ApiOperation(value = "批量新增出入库物件信息")
    @PostMapping("/warehouse/addIoWarehouseProducts")
    public Result batchAdd(@RequestBody List<IoWarehouseProduct> ioWarehouseProducts);
}
